package com.zzxy.spring.dao.impl;

import com.zzxy.spring.dao.IAccountDao;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class AccountDaoImpl extends JdbcDaoSupport implements IAccountDao {
    public void out(String outer,int money) {
        this.getJdbcTemplate().update("update account set money = money - ? where username = ?",money, outer);

    }
    public void out(String inner,int money) {
        this.getJdbcTemplate().update("update account set money = money + ? where username = ?",money, inner);

    }
}
